package util;

public class Shuffler {

	public static String shuffle(String word) {
		char[] charArray = word.toCharArray();
		char temp;

		for (int i = 0; i < word.length(); i++) {
			temp = charArray[i];
			int index = (int) (Math.random() * (word.length()-i));
			charArray[i] = charArray[i+index];
			charArray[i+index] = temp;
		}

		return new String(charArray);
	}

}
